package com.inspur.springcloudgateway.fallback;

import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

@Component
public class EchoFallBackFactory implements FallbackFactory<EchoFallBack> {
    @Override
    public EchoFallBack create(Throwable throwable) {
        return new EchoFallBack(throwable);
    }
}
